# -*- coding: utf-8 -*-
from django.conf.urls import url, include
from .views import *

goodlabel_list = GoodLabelListViewSet.as_view({
    'get': 'list',
    'post': 'create',  # 自动生成html表单
})

goodlabelstickgood_list = GoodLabelStickGoodListViewSet.as_view({
    'get': 'list',
    'post': 'create',
})


# `create()`, `retrieve()`, `update()`,`partial_update()`, `destroy()` and `list()`actions.

urlpatterns = [
    url(r'^goodlabels/$', goodlabel_list),
    url(r'^goodlabelstickgood/$', goodlabelstickgood_list),
]
